import {request} from "../utils/request.js";


//用户登录
export const userLoginAPI = (data) => {
    return request({
        url: '/user/login',
        method: 'post',
        data
    })
}

//用户注册
export const userRegisterAPI = (data) => {
    return request({
        url: '/user/register',
        method: 'post',
        data
    })
}

//获取验证码
export const getCodeAPI = (data) => {
    return request({
        url: '/user/code',
        method: 'post',
        data
    })
}